cpp = g++
OPT =
DEBUG_FLAG =
INCLUDE = ./include/
SRCD    = ./src/
LIST    = ${INCLUDE}listlnk2.h ${INCLUDE}listlnk2.cpp
ORDLIST = ${INCLUDE}ordlist.h ${INCLUDE}ordlist.cpp
SRC = ${SRCD}ifEngine.h ${SRCD}ifEngine.cpp ${SRCD}command.cpp ${SRCD}loadGame.cpp ${SRCD}start.cpp
ADT = ${SRCD}location.cpp ${SRCD}map.cpp ${SRCD}character.cpp ${SRCD}item.cpp

all: main.o
	${cpp} -o play.exe main.o
main.o: ${SRCD}main.cpp ifEngine.o
	${cpp} -c -I${INCLUDE} ${SRCD}main.cpp
ifEngine.o: ${SRC} ${ADT} ${LIST} ${ORDLIST}
	${cpp} -c -I${INCLUDE} ${SRCD}ifEngine.cpp
clean:
	rm -f *.o
	rm -f play.exe
